//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.vere.orm.model;

import com.vere.orm.util.CDataType;

public class Property {
    private String name;
    private String value;
    private String column;
    private String generator;
    private boolean key;
    private Object fieldType;
    private String type;
    private long length;
    private boolean field;

    public Property() {
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getColumn() {
        return this.column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public String getGenerator() {
        return this.generator;
    }

    public void setGenerator(String generator) {
        this.generator = generator;
    }

    public boolean isKey() {
        return this.key;
    }

    public void setKey(boolean key) {
        this.key = key;
    }

    public Object getFieldType() {
        return this.fieldType;
    }

    public void setFieldType(Object fieldType) {
        this.fieldType = fieldType;
    }

    public String getType() {
        if (this.type == null || "".equals(this.type)) {
            this.type = CDataType.STRING;
        }

        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getLength() {
        return this.length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public boolean isField() {
        return this.field;
    }

    public void setField(boolean field) {
        this.field = field;
    }
}
